import request from '#/utils/requestAbort.js';

export function queryAggregateData(data: any) {
  return request(`/disclosure/onlinePowerAnalysis/queryAggregateData`, {
    method: 'POST',
    data,
  });
}

export function queryDataByDay(data: any) {
  return request(`/disclosure/onlinePowerAnalysis/queryDataByDay`, {
    method: 'POST',
    data,
  });
}

export function addOnlinePower(data: any) {
  return request(`/disclosure/onlinePowerAnalysis/addOnlinePower`, {
    method: 'POST',
    data,
  });
}

export const logUrl = '/disclosure/onlinePowerAnalysis/queryLogs';
